
#include "stdafx.h"
#include "Controller.h"


CController* CController::m_pController = NULL; 



CController::CController()
{
	ReleaseController();

}



void CController::ReleaseController()
{

}



CController* CController::GetControllerInstance()
{
	if (NULL == m_pController)
	{
		m_pController = new CController();
	}

	return m_pController;
}



bool CController::IsKeyDown(char key)
{
	return KEYDOWN(key);
}

bool CController::IsKeyUp(char key)
{
	return KEYUP(key);
}



void CController::SetMouseRay(Ray ray)
{
	m_mouseRay.origin = ray.origin;
	m_mouseRay.dir = ray.dir;
}



Ray CController::GetMouseRay()
{
	return m_mouseRay;
}


